package com.alibaba.service;

import com.alibaba.bean.Dormitory;
import com.alibaba.bean.Result;
import com.alibaba.mapper.DormitoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
@Transactional(rollbackFor = RuntimeException.class)
public class DormitoryService {
    @Autowired
    private DormitoryMapper dormitoryMapper;

    public List<Dormitory> findAllDomitory() {
        return dormitoryMapper.selectAll();
    }

}
